import request from '@/utils/request'

// 查询参数列表
export function listProject(query) {
  return request({
    url: '/pm/bid/list',
    method: 'get',
    params: query
  })
}
export function getAllProject(query) {
  return request({
    url: '/pm/project/getAll',
    method: 'get',
    params: query
  })
}
// // 根据参数键名查询参数值
// export function getProject() {
//   return request({
//     url: '/pm/project/bid'+ bid,
//     method: 'get'
//   })
// }


// 新增参数配置
export function addProject(data) {
  return request({
    url: '/pm/bid/add',
    method: 'post',
    data: data
  })
}


// 删除参数配置
export function delProject(configId) {
  return request({
    url: '/pm/bid/delete' + configId,
    method: 'delete'
  })
}

// 修改参数列表//
export function updateProject(data) {
  return request({
    url: '/pm/bid/update',
    method: 'post',
    data: data
  })
}


// 存档//
export function archive(data) {
  return request({
    url: '/pm/bid/archive',
    method: 'post',
    data: data
  })
}



// 查询性别比例
export function getSexRatio() {
  return request({
    url: '/pm/bid/getSexRatio',
    method: 'get'
  })
}

//字典
export function getCostCategoryDropdown() {
  return request({
    url: '/pm/bid/dropdown',
    method: 'get'
  })
}

//报表
export function getReport() {
  return request({
    url: '/pm/bid/dropdown',
    method: 'get'
  })
}
